package com.anywhere.freightman.order.dao;

import com.anywhere.freightman.common.BaseMapper;
import com.anywhere.freightman.order.model.WaybillLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface WaybillLogDao extends BaseMapper<WaybillLog> {

    @Select("select * from waybill_log where order_no=#{orderNo} order by id desc")
    List<WaybillLog> getListByOrderNo(@Param("orderNo") String orderNo);
}
